package com.stock.stockprediction.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.stock.stockprediction.entity.Stock;
import com.baomidou.mybatisplus.extension.service.IService;
import com.stock.stockprediction.entity.StockMongo;
import com.stock.stockprediction.entity.vo.StockMonthVo;
import com.stock.stockprediction.entity.vo.StockVo;

import java.text.ParseException;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xtt
 * @since 2022-06-03
 */
public interface StockService extends IService<Stock> {

    //返回分页所有数据
    Map<String, Object> getStockList(Page<Stock> stockPage, StockVo stock);

    //查询所有月数据
    Map<String, Object> getStockListByMonth(StockVo stockVo);

    //查询所有月数据(带分页)
    Map<String,Object> getAllMonthData(Long page, Long limit);

    //获取所有股票日数据并对结果进行封装
    Map<String, Object> getAllDialyData(StockVo stockVo);

    //从mongodb中获取预测数据和真实数据
    StockMongo findMongo(String label);
}
